import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home'
import Home from '@/pages/home'
import jingdian from '@/pages/jingdian'
import foodList from '@/pages/foodList'
import zhusu from '@/pages/zhusu'
import routeList from '@/pages/routeList'
import traffic from '@/pages/traffic'
import hotSpot from '@/pages/hotSpot'
import spotDes from '@/pages/spotDes'
Vue.use(Router)

export default new Router({
    mode:'hash',
  routes: [
	  // {
		 //  path: '/',redirect:{name:'Home'}
	  // },
		{
		  path: '/',
		  name: 'home',
		  component: home
		},
    {
      path: '/pages/home',
      name: 'Home',
      component: Home
    },
		{
		  path: '/pages/jingdian',
		  name: 'jingdian',
		  component: jingdian
		},
		{
		  path: '/pages/foodList',
		  name: 'foodList',
		  component: foodList
		},
		{
		  path: '/pages/zhusu',
		  name: 'zhusu',
		  component: zhusu
		},
		{
		  path: '/pages/routeList',
		  name: 'routeList',
		  component: routeList
		},
		{
		  path: '/pages/traffic',
		  name: 'traffic',
		  component: traffic
		},
		{
		  path: '/pages/hotSpot',
		  name: 'hotSpot',
		  component: hotSpot
		},
		{
		  path: '/pages/spotDes',
		  name: 'spotDes',
		  component: spotDes
		}
  ]
})
